Merged
Conversation
1971123-seongmin
approved these changes
Apr 29, 2025
| 404 -> "Not Found: 요청한 리소스를 찾을 수 없습니다." | ||
| in 500 until 600 -> "Internal Server Error: 서버 내부 오류입니다." | ||
| else -> "Unknown Error: 알 수 없는 오류입니다." | ||
| } |
Member
There was a problem hiding this comment.
이렇게 RemoteError.kt를 사용하는 구조로 변경했을 때 실제 동작에서의 차이도 있을까요??
Collaborator
Author
There was a problem hiding this comment.
아뇨 차이없습니당.
클래스 구조를 좀 더 효율적으로 변경하였습니다.
| override fun responseType(): Type = responseType | ||
|
|
||
| override fun adapt(call: Call<R>): Call<R> { | ||
| return object : Call<R> { |
Member
There was a problem hiding this comment.
여기서 Call을 사용하신 이유가 궁금합니다.
Collaborator
Author
There was a problem hiding this comment.
어떤 이유라기 보다는 CallAdapter를 확장할 때, 타입으로 원래 Call를 지정해주어야 하는 것으로 알고 있습니다.
| if (response.isSuccessful) { | ||
| if (response.body() != null) | ||
| callback.onResponse(call, response) | ||
| else { |
Member
There was a problem hiding this comment.
여기에서 response의 body가 null이라는 것은 홈 화면의 가게 리스트가 emptyList 이런 것이 아닌 body자체가 null이란 뜻인건가요??
Collaborator
Author
There was a problem hiding this comment.
네 body가 null이라서 정상적인 상황은 아님을 나타냅니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧨 Issue
💻 Work Description